.class public Lcom/facebook/orca/threadview/ThreadViewActivity;
.super Lcom/facebook/orca/activity/OrcaFragmentActivity;
.source "ThreadViewActivity.java"


# instance fields
.field private A:Lcom/facebook/orca/common/ui/tabs/FragmentTabHost;
    .annotation runtime Lroboguice/inject/InjectView;
        a = 0x1020012
    .end annotation
.end field

.field private B:Lcom/facebook/orca/common/ui/titlebar/TitleBar;
    .annotation runtime Lroboguice/inject/InjectView;
        a = 0x7f0800eb
    .end annotation
.end field

.field private C:Lcom/facebook/orca/common/ui/widgets/EmptyListViewItem;
    .annotation runtime Lroboguice/inject/InjectView;
        a = 0x7f0800f4
    .end annotation
.end field

.field private D:Landroid/view/View;
    .annotation runtime Lroboguice/inject/InjectView;
        a = 0x7f0800ee
    .end annotation
.end field

.field private E:Lcom/facebook/orca/compose/LocationNuxView;
    .annotation runtime Lroboguice/inject/InjectView;
        a = 0x7f08005c
    .end annotation
.end field

.field private F:Lcom/facebook/orca/threadview/ThreadAlertRateLimitView;
    .annotation runtime Lroboguice/inject/InjectView;
        a = 0x7f0800f6
    .end annotation
.end field

.field private G:Ljava/lang/String;

.field private H:Landroid/content/BroadcastReceiver;

.field private I:Lcom/facebook/orca/common/ui/widgets/text/ThreadNameView;

.field private J:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Lcom/facebook/orca/common/ui/titlebar/TitleBarButtonSpec;",
            ">;"
        }
    .end annotation
.end field

.field private K:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Lcom/facebook/orca/common/ui/titlebar/TitleBarButtonSpec;",
            ">;"
        }
    .end annotation
.end field

.field private L:Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;

.field private M:Lcom/facebook/orca/threadview/ThreadViewMembersFragmentTab;

.field private N:Lcom/facebook/orca/threadview/ThreadViewDetailsFragmentTab;

.field private O:Lcom/facebook/orca/threadview/ThreadViewMapFragmentTab;

.field private P:Lcom/facebook/orca/tabs/TabIndicatorView;

.field private Q:Lcom/facebook/orca/tabs/TabIndicatorView;

.field private R:Lcom/facebook/orca/tabs/TabIndicatorView;

.field private S:Lcom/facebook/orca/tabs/TabIndicatorView;

.field private T:Z

.field private U:Z

.field private V:Z

.field private W:Ljava/lang/String;

.field private X:Z

.field private Y:Z

.field private Z:Z

.field private a:Lcom/facebook/orca/cache/DataCache;
    .annotation runtime Lcom/google/inject/Inject;
    .end annotation
.end field

.field private aa:Z

.field private ab:Lcom/facebook/orca/threads/ThreadSummary;

.field private ac:Lcom/facebook/orca/threads/MessagesCollection;

.field private ad:J

.field private ae:Lcom/facebook/orca/compose/ComposeMode;

.field private n:Lcom/facebook/orca/notify/OrcaNotificationManager;
    .annotation runtime Lcom/google/inject/Inject;
    .end annotation
.end field

.field private o:Lcom/facebook/orca/tabs/TabIndicatorViewFactory;
    .annotation runtime Lcom/google/inject/Inject;
    .end annotation
.end field

.field private p:Lcom/facebook/orca/prefs/OrcaSharedPreferences;
    .annotation runtime Lcom/google/inject/Inject;
    .end annotation
.end field

.field private q:Lcom/facebook/orca/cache/ThreadDisplayCache;
    .annotation runtime Lcom/google/inject/Inject;
    .end annotation
.end field

.field private r:Landroid/support/v4/app/FragmentManager;
    .annotation runtime Lcom/google/inject/Inject;
    .end annotation
.end field

.field private s:Lcom/facebook/orca/common/ui/widgets/AnchorableToast;
    .annotation runtime Lcom/google/inject/Inject;
    .end annotation
.end field

.field private t:Lcom/facebook/orca/common/dialogs/ErrorMessageGenerator;
    .annotation runtime Lcom/google/inject/Inject;
    .end annotation
.end field

.field private u:Landroid/view/inputmethod/InputMethodManager;
    .annotation runtime Lcom/google/inject/Inject;
    .end annotation
.end field

.field private v:Lcom/facebook/orca/notify/NotificationSettingsUtil;
    .annotation runtime Lcom/google/inject/Inject;
    .end annotation
.end field

.field private w:Lcom/facebook/orca/ops/OrcaServiceFragment;

.field private x:Lcom/facebook/orca/ops/OrcaServiceFragment;

.field private y:Lcom/facebook/orca/ops/OrcaServiceFragment;

.field private z:Lcom/facebook/orca/ops/OrcaServiceFragment;


# direct methods
.method public constructor <init>()V
    .locals 2

    .prologue
    .line 60
    invoke-direct {p0}, Lcom/facebook/orca/activity/OrcaFragmentActivity;-><init>()V

    .line 138
    const-wide/16 v0, -0x1

    iput-wide v0, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->ad:J

    return-void
.end method

.method private a(Lcom/facebook/orca/ops/ServiceException;Z)V
    .locals 4
    .parameter
    .parameter

    .prologue
    const/4 v3, 0x1

    .line 663
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->s:Lcom/facebook/orca/common/ui/widgets/AnchorableToast;

    const-wide/16 v1, 0x1388

    invoke-virtual {v0, v1, v2}, Lcom/facebook/orca/common/ui/widgets/AnchorableToast;->a(J)V

    .line 664
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->s:Lcom/facebook/orca/common/ui/widgets/AnchorableToast;

    invoke-virtual {v0, v3}, Lcom/facebook/orca/common/ui/widgets/AnchorableToast;->a(Z)V

    .line 666
    if-eqz p2, :cond_0

    .line 667
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->L:Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;

    invoke-virtual {v0}, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->f()Lcom/facebook/orca/compose/ComposeView;

    move-result-object v0

    invoke-virtual {v0}, Lcom/facebook/orca/compose/ComposeView;->o()Landroid/view/View;

    move-result-object v0

    .line 668
    iget-object v1, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->s:Lcom/facebook/orca/common/ui/widgets/AnchorableToast;

    const/16 v2, 0x30

    invoke-virtual {v1, v2}, Lcom/facebook/orca/common/ui/widgets/AnchorableToast;->a(I)V

    .line 673
    :goto_0
    iget-object v1, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->s:Lcom/facebook/orca/common/ui/widgets/AnchorableToast;

    iget-object v2, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->t:Lcom/facebook/orca/common/dialogs/ErrorMessageGenerator;

    invoke-virtual {v2, p1, v3}, Lcom/facebook/orca/common/dialogs/ErrorMessageGenerator;->a(Lcom/facebook/orca/ops/ServiceException;Z)Ljava/lang/String;

    move-result-object v2

    sget-object v3, Lcom/facebook/orca/common/ui/widgets/AnchorableToast$ToastType;->NORMAL:Lcom/facebook/orca/common/ui/widgets/AnchorableToast$ToastType;

    invoke-virtual {v1, v0, v2, v3}, Lcom/facebook/orca/common/ui/widgets/AnchorableToast;->a(Landroid/view/View;Ljava/lang/CharSequence;Lcom/facebook/orca/common/ui/widgets/AnchorableToast$ToastType;)V

    .line 677
    return-void

    .line 670
    :cond_0
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->B:Lcom/facebook/orca/common/ui/titlebar/TitleBar;

    .line 671
    iget-object v1, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->s:Lcom/facebook/orca/common/ui/widgets/AnchorableToast;

    const/16 v2, 0x50

    invoke-virtual {v1, v2}, Lcom/facebook/orca/common/ui/widgets/AnchorableToast;->a(I)V

    goto :goto_0
.end method

.method private a(Lcom/facebook/orca/server/DataFreshnessParam;)V
    .locals 3
    .parameter

    .prologue
    .line 600
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->w:Lcom/facebook/orca/ops/OrcaServiceFragment;

    invoke-virtual {v0}, Lcom/facebook/orca/ops/OrcaServiceFragment;->c()Lcom/facebook/orca/ops/OrcaServiceOperation$State;

    move-result-object v0

    sget-object v1, Lcom/facebook/orca/ops/OrcaServiceOperation$State;->INIT:Lcom/facebook/orca/ops/OrcaServiceOperation$State;

    if-eq v0, v1, :cond_0

    .line 616
    :goto_0
    return-void

    .line 605
    :cond_0
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->s:Lcom/facebook/orca/common/ui/widgets/AnchorableToast;

    invoke-virtual {v0}, Lcom/facebook/orca/common/ui/widgets/AnchorableToast;->a()V

    .line 606
    new-instance v0, Lcom/facebook/orca/server/FetchThreadParamsBuilder;

    invoke-direct {v0}, Lcom/facebook/orca/server/FetchThreadParamsBuilder;-><init>()V

    iget-object v1, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->G:Ljava/lang/String;

    invoke-virtual {v0, v1}, Lcom/facebook/orca/server/FetchThreadParamsBuilder;->a(Ljava/lang/String;)Lcom/facebook/orca/server/FetchThreadParamsBuilder;

    move-result-object v0

    invoke-virtual {v0, p1}, Lcom/facebook/orca/server/FetchThreadParamsBuilder;->a(Lcom/facebook/orca/server/DataFreshnessParam;)Lcom/facebook/orca/server/FetchThreadParamsBuilder;

    move-result-object v0

    const/16 v1, 0x32

    invoke-virtual {v0, v1}, Lcom/facebook/orca/server/FetchThreadParamsBuilder;->a(I)Lcom/facebook/orca/server/FetchThreadParamsBuilder;

    move-result-object v0

    invoke-virtual {v0}, Lcom/facebook/orca/server/FetchThreadParamsBuilder;->h()Lcom/facebook/orca/server/FetchThreadParams;

    move-result-object v0

    .line 611
    new-instance v1, Landroid/os/Bundle;

    invoke-direct {v1}, Landroid/os/Bundle;-><init>()V

    .line 612
    const-string v2, "fetchThreadParams"

    invoke-virtual {v1, v2, v0}, Landroid/os/Bundle;->putParcelable(Ljava/lang/String;Landroid/os/Parcelable;)V

    .line 613
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->w:Lcom/facebook/orca/ops/OrcaServiceFragment;

    const-string v2, "fetch_thread"

    invoke-virtual {v0, v2, v1}, Lcom/facebook/orca/ops/OrcaServiceFragment;->a(Ljava/lang/String;Landroid/os/Bundle;)V

    .line 614
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->C:Lcom/facebook/orca/common/ui/widgets/EmptyListViewItem;

    invoke-virtual {p0}, Lcom/facebook/orca/threadview/ThreadViewActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    const v2, 0x7f0a0029

    invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/facebook/orca/common/ui/widgets/EmptyListViewItem;->setMessage(Ljava/lang/CharSequence;)V

    .line 615
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->C:Lcom/facebook/orca/common/ui/widgets/EmptyListViewItem;

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Lcom/facebook/orca/common/ui/widgets/EmptyListViewItem;->a(Z)V

    goto :goto_0
.end method

.method private a(Lcom/facebook/orca/server/OperationResult;)V
    .locals 4
    .parameter

    .prologue
    const/4 v3, 0x0

    .line 622
    invoke-virtual {p1}, Lcom/facebook/orca/server/OperationResult;->e()Landroid/os/Parcelable;

    move-result-object v0

    check-cast v0, Lcom/facebook/orca/server/FetchThreadResult;

    .line 624
    invoke-virtual {v0}, Lcom/facebook/orca/server/FetchThreadResult;->a()Lcom/facebook/orca/threads/ThreadSummary;

    move-result-object v1

    iput-object v1, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->ab:Lcom/facebook/orca/threads/ThreadSummary;

    .line 625
    invoke-virtual {v0}, Lcom/facebook/orca/server/FetchThreadResult;->b()Lcom/facebook/orca/threads/MessagesCollection;

    move-result-object v1

    iput-object v1, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->ac:Lcom/facebook/orca/threads/MessagesCollection;

    .line 626
    invoke-virtual {v0}, Lcom/facebook/orca/server/FetchThreadResult;->f()J

    move-result-wide v1

    iput-wide v1, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->ad:J

    .line 627
    iget-object v1, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->C:Lcom/facebook/orca/common/ui/widgets/EmptyListViewItem;

    invoke-virtual {v1, v3}, Lcom/facebook/orca/common/ui/widgets/EmptyListViewItem;->a(Z)V

    .line 628
    iget-object v1, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->C:Lcom/facebook/orca/common/ui/widgets/EmptyListViewItem;

    const/4 v2, 0x0

    invoke-virtual {v1, v2}, Lcom/facebook/orca/common/ui/widgets/EmptyListViewItem;->setMessage(Ljava/lang/CharSequence;)V

    .line 629
    const/4 v1, 0x1

    invoke-direct {p0, v1}, Lcom/facebook/orca/threadview/ThreadViewActivity;->d(Z)V

    .line 630
    invoke-direct {p0}, Lcom/facebook/orca/threadview/ThreadViewActivity;->q()V

    .line 632
    invoke-virtual {v0}, Lcom/facebook/orca/server/FetchThreadResult;->e()Lcom/facebook/orca/server/DataFreshnessResult;

    move-result-object v0

    .line 633
    iget-boolean v1, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->Z:Z

    if-eqz v1, :cond_0

    sget-object v1, Lcom/facebook/orca/server/DataFreshnessResult;->FROM_SERVER:Lcom/facebook/orca/server/DataFreshnessResult;

    if-eq v0, v1, :cond_0

    .line 635
    sget-object v0, Lcom/facebook/orca/server/DataFreshnessParam;->CHECK_SERVER_FOR_NEW_DATA:Lcom/facebook/orca/server/DataFreshnessParam;

    invoke-direct {p0, v0}, Lcom/facebook/orca/threadview/ThreadViewActivity;->a(Lcom/facebook/orca/server/DataFreshnessParam;)V

    .line 642
    :goto_0
    return-void

    .line 636
    :cond_0
    sget-object v1, Lcom/facebook/orca/server/DataFreshnessResult;->FROM_CACHE_STALE:Lcom/facebook/orca/server/DataFreshnessResult;

    if-ne v0, v1, :cond_1

    .line 638
    sget-object v0, Lcom/facebook/orca/server/DataFreshnessParam;->PREFER_CACHE_IF_UP_TO_DATE:Lcom/facebook/orca/server/DataFreshnessParam;

    invoke-direct {p0, v0}, Lcom/facebook/orca/threadview/ThreadViewActivity;->a(Lcom/facebook/orca/server/DataFreshnessParam;)V

    goto :goto_0

    .line 640
    :cond_1
    iput-boolean v3, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->aa:Z

    goto :goto_0
.end method

.method static synthetic a(Lcom/facebook/orca/threadview/ThreadViewActivity;)V
    .locals 0
    .parameter

    .prologue
    .line 60
    invoke-direct {p0}, Lcom/facebook/orca/threadview/ThreadViewActivity;->r()V

    return-void
.end method

.method static synthetic a(Lcom/facebook/orca/threadview/ThreadViewActivity;Lcom/facebook/orca/ops/ServiceException;)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 60
    invoke-direct {p0, p1}, Lcom/facebook/orca/threadview/ThreadViewActivity;->b(Lcom/facebook/orca/ops/ServiceException;)V

    return-void
.end method

.method static synthetic a(Lcom/facebook/orca/threadview/ThreadViewActivity;Lcom/facebook/orca/server/OperationResult;)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 60
    invoke-direct {p0, p1}, Lcom/facebook/orca/threadview/ThreadViewActivity;->a(Lcom/facebook/orca/server/OperationResult;)V

    return-void
.end method

.method static synthetic a(Lcom/facebook/orca/threadview/ThreadViewActivity;Z)Z
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 60
    iput-boolean p1, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->Z:Z

    return p1
.end method

.method static synthetic b(Lcom/facebook/orca/threadview/ThreadViewActivity;)Landroid/content/BroadcastReceiver;
    .locals 1
    .parameter

    .prologue
    .line 60
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->H:Landroid/content/BroadcastReceiver;

    return-object v0
.end method

.method private b(Lcom/facebook/orca/ops/ServiceException;)V
    .locals 4
    .parameter

    .prologue
    const/4 v3, 0x1

    const/4 v2, 0x0

    .line 648
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->ab:Lcom/facebook/orca/threads/ThreadSummary;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->ac:Lcom/facebook/orca/threads/MessagesCollection;

    if-nez v0, :cond_2

    .line 649
    :cond_0
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->C:Lcom/facebook/orca/common/ui/widgets/EmptyListViewItem;

    invoke-virtual {v0, v2}, Lcom/facebook/orca/common/ui/widgets/EmptyListViewItem;->a(Z)V

    .line 650
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->C:Lcom/facebook/orca/common/ui/widgets/EmptyListViewItem;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Lcom/facebook/orca/common/ui/widgets/EmptyListViewItem;->setMessage(Ljava/lang/CharSequence;)V

    .line 656
    :goto_0
    iget-boolean v0, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->aa:Z

    if-eqz v0, :cond_1

    .line 657
    invoke-direct {p0, p1, v3}, Lcom/facebook/orca/threadview/ThreadViewActivity;->a(Lcom/facebook/orca/ops/ServiceException;Z)V

    .line 658
    iput-boolean v2, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->aa:Z

    .line 660
    :cond_1
    return-void

    .line 653
    :cond_2
    invoke-direct {p0, v3}, Lcom/facebook/orca/threadview/ThreadViewActivity;->d(Z)V

    .line 654
    invoke-direct {p0}, Lcom/facebook/orca/threadview/ThreadViewActivity;->q()V

    goto :goto_0
.end method

.method private b(Lcom/facebook/orca/server/OperationResult;)V
    .locals 2
    .parameter

    .prologue
    .line 724
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->ab:Lcom/facebook/orca/threads/ThreadSummary;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->ac:Lcom/facebook/orca/threads/MessagesCollection;

    if-eqz v0, :cond_0

    .line 725
    invoke-virtual {p1}, Lcom/facebook/orca/server/OperationResult;->e()Landroid/os/Parcelable;

    move-result-object v0

    check-cast v0, Lcom/facebook/orca/server/FetchMoreMessagesResult;

    .line 726
    iget-object v1, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->ac:Lcom/facebook/orca/threads/MessagesCollection;

    invoke-virtual {v0}, Lcom/facebook/orca/server/FetchMoreMessagesResult;->a()Lcom/facebook/orca/threads/MessagesCollection;

    move-result-object v0

    invoke-static {v1, v0}, Lcom/facebook/orca/threads/MessagesCollection;->a(Lcom/facebook/orca/threads/MessagesCollection;Lcom/facebook/orca/threads/MessagesCollection;)Lcom/facebook/orca/threads/MessagesCollection;

    move-result-object v0

    iput-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->ac:Lcom/facebook/orca/threads/MessagesCollection;

    .line 728
    invoke-direct {p0}, Lcom/facebook/orca/threadview/ThreadViewActivity;->q()V

    .line 729
    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->aa:Z

    .line 731
    :cond_0
    return-void
.end method

.method static synthetic b(Lcom/facebook/orca/threadview/ThreadViewActivity;Lcom/facebook/orca/ops/ServiceException;)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 60
    invoke-direct {p0, p1}, Lcom/facebook/orca/threadview/ThreadViewActivity;->c(Lcom/facebook/orca/ops/ServiceException;)V

    return-void
.end method

.method static synthetic b(Lcom/facebook/orca/threadview/ThreadViewActivity;Lcom/facebook/orca/server/OperationResult;)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 60
    invoke-direct {p0, p1}, Lcom/facebook/orca/threadview/ThreadViewActivity;->b(Lcom/facebook/orca/server/OperationResult;)V

    return-void
.end method

.method static synthetic b(Lcom/facebook/orca/threadview/ThreadViewActivity;Z)Z
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 60
    iput-boolean p1, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->aa:Z

    return p1
.end method

.method static synthetic c(Lcom/facebook/orca/threadview/ThreadViewActivity;)Ljava/lang/String;
    .locals 1
    .parameter

    .prologue
    .line 60
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->G:Ljava/lang/String;

    return-object v0
.end method

.method private c(Lcom/facebook/orca/ops/ServiceException;)V
    .locals 2
    .parameter

    .prologue
    const/4 v1, 0x0

    .line 737
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->L:Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;

    invoke-virtual {v0}, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->g()V

    .line 738
    iget-boolean v0, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->aa:Z

    if-eqz v0, :cond_0

    .line 739
    invoke-direct {p0, p1, v1}, Lcom/facebook/orca/threadview/ThreadViewActivity;->a(Lcom/facebook/orca/ops/ServiceException;Z)V

    .line 740
    iput-boolean v1, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->aa:Z

    .line 742
    :cond_0
    return-void
.end method

.method private c(Lcom/facebook/orca/server/OperationResult;)V
    .locals 2
    .parameter

    .prologue
    .line 786
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->a:Lcom/facebook/orca/cache/DataCache;

    iget-object v1, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->G:Ljava/lang/String;

    invoke-virtual {v0, v1}, Lcom/facebook/orca/cache/DataCache;->d(Ljava/lang/String;)Lcom/facebook/orca/threads/ThreadSummary;

    move-result-object v0

    iput-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->ab:Lcom/facebook/orca/threads/ThreadSummary;

    .line 787
    invoke-direct {p0}, Lcom/facebook/orca/threadview/ThreadViewActivity;->q()V

    .line 790
    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->Z:Z

    .line 791
    invoke-virtual {p0}, Lcom/facebook/orca/threadview/ThreadViewActivity;->e()V

    .line 792
    return-void
.end method

.method static synthetic c(Lcom/facebook/orca/threadview/ThreadViewActivity;Lcom/facebook/orca/ops/ServiceException;)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 60
    invoke-direct {p0, p1}, Lcom/facebook/orca/threadview/ThreadViewActivity;->d(Lcom/facebook/orca/ops/ServiceException;)V

    return-void
.end method

.method static synthetic c(Lcom/facebook/orca/threadview/ThreadViewActivity;Lcom/facebook/orca/server/OperationResult;)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 60
    invoke-direct {p0, p1}, Lcom/facebook/orca/threadview/ThreadViewActivity;->c(Lcom/facebook/orca/server/OperationResult;)V

    return-void
.end method

.method static synthetic c(Lcom/facebook/orca/threadview/ThreadViewActivity;Z)Z
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 60
    iput-boolean p1, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->Y:Z

    return p1
.end method

.method private d(Lcom/facebook/orca/ops/ServiceException;)V
    .locals 1
    .parameter

    .prologue
    .line 798
    invoke-static {p0}, Lcom/facebook/orca/common/dialogs/ErrorDialogBuilder;->a(Landroid/content/Context;)Lcom/facebook/orca/common/dialogs/ErrorDialogBuilder;

    move-result-object v0

    invoke-virtual {v0, p1}, Lcom/facebook/orca/common/dialogs/ErrorDialogBuilder;->a(Lcom/facebook/orca/ops/ServiceException;)Lcom/facebook/orca/common/dialogs/ErrorDialogBuilder;

    move-result-object v0

    invoke-virtual {v0}, Lcom/facebook/orca/common/dialogs/ErrorDialogBuilder;->a()Landroid/app/AlertDialog;

    .line 801
    return-void
.end method

.method static synthetic d(Lcom/facebook/orca/threadview/ThreadViewActivity;)V
    .locals 0
    .parameter

    .prologue
    .line 60
    invoke-direct {p0}, Lcom/facebook/orca/threadview/ThreadViewActivity;->p()V

    return-void
.end method

.method private d(Z)V
    .locals 5
    .parameter

    .prologue
    const/4 v4, 0x1

    const/4 v3, 0x0

    .line 433
    iget-boolean v0, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->U:Z

    if-eqz v0, :cond_1

    .line 453
    :cond_0
    :goto_0
    return-void

    .line 436
    :cond_1
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->C:Lcom/facebook/orca/common/ui/widgets/EmptyListViewItem;

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Lcom/facebook/orca/common/ui/widgets/EmptyListViewItem;->setVisibility(I)V

    .line 437
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->L:Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;

    invoke-virtual {v0}, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->o()Landroid/view/View;

    move-result-object v0

    invoke-virtual {v0, v3}, Landroid/view/View;->setVisibility(I)V

    .line 439
    if-eqz p1, :cond_2

    .line 440
    new-instance v0, Landroid/view/animation/AlphaAnimation;

    const/4 v1, 0x0

    const/high16 v2, 0x3f80

    invoke-direct {v0, v1, v2}, Landroid/view/animation/AlphaAnimation;-><init>(FF)V

    .line 441
    const-wide/16 v1, 0x190

    invoke-virtual {v0, v1, v2}, Landroid/view/animation/AlphaAnimation;->setDuration(J)V

    .line 442
    invoke-virtual {v0, v4}, Landroid/view/animation/AlphaAnimation;->setFillAfter(Z)V

    .line 443
    new-instance v1, Landroid/view/animation/AccelerateInterpolator;

    invoke-direct {v1}, Landroid/view/animation/AccelerateInterpolator;-><init>()V

    invoke-virtual {v0, v1}, Landroid/view/animation/AlphaAnimation;->setInterpolator(Landroid/view/animation/Interpolator;)V

    .line 444
    iget-object v1, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->L:Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;

    invoke-virtual {v1}, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->o()Landroid/view/View;

    move-result-object v1

    invoke-virtual {v1, v0}, Landroid/view/View;->setAnimation(Landroid/view/animation/Animation;)V

    .line 446
    :cond_2
    iput-boolean v4, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->U:Z

    .line 447
    invoke-virtual {p0}, Lcom/facebook/orca/threadview/ThreadViewActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    .line 448
    const-string v1, "for_sharing"

    invoke-virtual {v0, v1, v3}, Landroid/content/Intent;->getBooleanExtra(Ljava/lang/String;Z)Z

    move-result v1

    if-eqz v1, :cond_0

    .line 449
    iget-object v1, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->L:Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;

    invoke-virtual {v1}, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->c()V

    .line 450
    iget-object v1, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->L:Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;

    invoke-virtual {v1}, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->f()Lcom/facebook/orca/compose/ComposeView;

    move-result-object v1

    invoke-virtual {v1, v0}, Lcom/facebook/orca/compose/ComposeView;->b(Landroid/content/Intent;)V

    .line 451
    const-string v1, "for_sharing"

    invoke-virtual {v0, v1}, Landroid/content/Intent;->removeExtra(Ljava/lang/String;)V

    goto :goto_0
.end method

.method static synthetic e(Lcom/facebook/orca/threadview/ThreadViewActivity;)Z
    .locals 1
    .parameter

    .prologue
    .line 60
    iget-boolean v0, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->X:Z

    return v0
.end method

.method static synthetic f(Lcom/facebook/orca/threadview/ThreadViewActivity;)V
    .locals 0
    .parameter

    .prologue
    .line 60
    invoke-direct {p0}, Lcom/facebook/orca/threadview/ThreadViewActivity;->s()V

    return-void
.end method

.method static synthetic g(Lcom/facebook/orca/threadview/ThreadViewActivity;)Lcom/facebook/orca/common/ui/tabs/FragmentTabHost;
    .locals 1
    .parameter

    .prologue
    .line 60
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->A:Lcom/facebook/orca/common/ui/tabs/FragmentTabHost;

    return-object v0
.end method

.method static synthetic h(Lcom/facebook/orca/threadview/ThreadViewActivity;)Landroid/view/View;
    .locals 1
    .parameter

    .prologue
    .line 60
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->D:Landroid/view/View;

    return-object v0
.end method

.method private k()V
    .locals 4

    .prologue
    .line 250
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->v:Lcom/facebook/orca/notify/NotificationSettingsUtil;

    iget-object v1, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->G:Ljava/lang/String;

    invoke-virtual {v0, v1}, Lcom/facebook/orca/notify/NotificationSettingsUtil;->a(Ljava/lang/String;)Lcom/facebook/orca/notify/NotificationSetting;

    move-result-object v0

    .line 251
    invoke-virtual {v0}, Lcom/facebook/orca/notify/NotificationSetting;->c()Z

    move-result v0

    if-nez v0, :cond_0

    .line 258
    :goto_0
    return-void

    .line 254
    :cond_0
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->G:Ljava/lang/String;

    invoke-static {v0}, Lcom/facebook/orca/prefs/PrefKeys;->a(Ljava/lang/String;)Lcom/facebook/orca/prefs/PrefKey;

    move-result-object v0

    .line 255
    iget-object v1, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->p:Lcom/facebook/orca/prefs/OrcaSharedPreferences;

    invoke-virtual {v1}, Lcom/facebook/orca/prefs/OrcaSharedPreferences;->a()Lcom/facebook/orca/prefs/OrcaSharedPreferences$Editor;

    move-result-object v1

    .line 256
    sget-object v2, Lcom/facebook/orca/notify/NotificationSetting;->a:Lcom/facebook/orca/notify/NotificationSetting;

    invoke-virtual {v2}, Lcom/facebook/orca/notify/NotificationSetting;->d()J

    move-result-wide v2

    invoke-virtual {v1, v0, v2, v3}, Lcom/facebook/orca/prefs/OrcaSharedPreferences$Editor;->a(Lcom/facebook/orca/prefs/PrefKey;J)V

    .line 257
    invoke-virtual {v1}, Lcom/facebook/orca/prefs/OrcaSharedPreferences$Editor;->a()V

    goto :goto_0
.end method

.method private l()V
    .locals 2

    .prologue
    .line 312
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->H:Landroid/content/BroadcastReceiver;

    if-eqz v0, :cond_0

    .line 315
    const-string v0, "ThreadViewActivity"

    const-string v1, "Called registerNotificationReceiver twice."

    invoke-static {v0, v1}, Lcom/facebook/orca/debug/BLog;->e(Ljava/lang/String;Ljava/lang/String;)V

    .line 342
    :goto_0
    return-void

    .line 318
    :cond_0
    new-instance v0, Landroid/content/IntentFilter;

    invoke-direct {v0}, Landroid/content/IntentFilter;-><init>()V

    .line 319
    const-string v1, "com.facebook.orca.ACTION_THREAD_UPDATES_FOR_UI"

    invoke-virtual {v0, v1}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V

    .line 320
    const-string v1, "com.facebook.orca.ACTION_REMOVED_THREAD_FOR_UI"

    invoke-virtual {v0, v1}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V

    .line 321
    new-instance v1, Lcom/facebook/orca/threadview/ThreadViewActivity$5;

    invoke-direct {v1, p0}, Lcom/facebook/orca/threadview/ThreadViewActivity$5;-><init>(Lcom/facebook/orca/threadview/ThreadViewActivity;)V

    iput-object v1, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->H:Landroid/content/BroadcastReceiver;

    .line 341
    iget-object v1, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->H:Landroid/content/BroadcastReceiver;

    invoke-virtual {p0, v1, v0}, Lcom/facebook/orca/threadview/ThreadViewActivity;->registerReceiver(Landroid/content/BroadcastReceiver;Landroid/content/IntentFilter;)Landroid/content/Intent;

    goto :goto_0
.end method

.method private m()V
    .locals 1

    .prologue
    .line 345
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->H:Landroid/content/BroadcastReceiver;

    if-eqz v0, :cond_0

    .line 346
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->H:Landroid/content/BroadcastReceiver;

    invoke-virtual {p0, v0}, Lcom/facebook/orca/threadview/ThreadViewActivity;->unregisterReceiver(Landroid/content/BroadcastReceiver;)V

    .line 347
    const/4 v0, 0x0

    iput-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->H:Landroid/content/BroadcastReceiver;

    .line 349
    :cond_0
    return-void
.end method

.method private n()V
    .locals 3

    .prologue
    .line 393
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->G:Ljava/lang/String;

    invoke-static {v0}, Lcom/facebook/orca/prefs/PrefKeys;->c(Ljava/lang/String;)Lcom/facebook/orca/prefs/PrefKey;

    move-result-object v0

    .line 394
    iget-object v1, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->p:Lcom/facebook/orca/prefs/OrcaSharedPreferences;

    const-string v2, "settings"

    invoke-virtual {v1, v0, v2}, Lcom/facebook/orca/prefs/OrcaSharedPreferences;->a(Lcom/facebook/orca/prefs/PrefKey;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->W:Ljava/lang/String;

    .line 395
    return-void
.end method

.method private o()V
    .locals 3

    .prologue
    const/16 v2, 0x8

    .line 456
    iget-boolean v0, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->V:Z

    if-eqz v0, :cond_0

    .line 516
    :goto_0
    return-void

    .line 461
    :cond_0
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->A:Lcom/facebook/orca/common/ui/tabs/FragmentTabHost;

    invoke-virtual {v0}, Lcom/facebook/orca/common/ui/tabs/FragmentTabHost;->setup()V

    .line 464
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->o:Lcom/facebook/orca/tabs/TabIndicatorViewFactory;

    const v1, 0x7f0a002b

    invoke-virtual {v0, v1}, Lcom/facebook/orca/tabs/TabIndicatorViewFactory;->a(I)Lcom/facebook/orca/tabs/TabIndicatorView;

    move-result-object v0

    iput-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->P:Lcom/facebook/orca/tabs/TabIndicatorView;

    .line 466
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->P:Lcom/facebook/orca/tabs/TabIndicatorView;

    invoke-virtual {v0, v2}, Lcom/facebook/orca/tabs/TabIndicatorView;->setVisibility(I)V

    .line 467
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->A:Lcom/facebook/orca/common/ui/tabs/FragmentTabHost;

    const-string v1, "messages"

    invoke-virtual {v0, v1}, Lcom/facebook/orca/common/ui/tabs/FragmentTabHost;->a(Ljava/lang/String;)Lcom/facebook/orca/common/ui/tabs/FragmentTabHost$TabSpec;

    move-result-object v0

    iget-object v1, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->P:Lcom/facebook/orca/tabs/TabIndicatorView;

    invoke-virtual {v0, v1}, Lcom/facebook/orca/common/ui/tabs/FragmentTabHost$TabSpec;->a(Landroid/view/View;)Lcom/facebook/orca/common/ui/tabs/FragmentTabHost$TabSpec;

    move-result-object v0

    const v1, 0x7f0800f0

    invoke-virtual {v0, v1}, Lcom/facebook/orca/common/ui/tabs/FragmentTabHost$TabSpec;->a(I)Lcom/facebook/orca/common/ui/tabs/FragmentTabHost$TabSpec;

    move-result-object v0

    .line 471
    iget-object v1, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->A:Lcom/facebook/orca/common/ui/tabs/FragmentTabHost;

    invoke-virtual {v1, v0}, Lcom/facebook/orca/common/ui/tabs/FragmentTabHost;->a(Lcom/facebook/orca/common/ui/tabs/FragmentTabHost$TabSpec;)V

    .line 474
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->o:Lcom/facebook/orca/tabs/TabIndicatorViewFactory;

    const v1, 0x7f0a002c

    invoke-virtual {v0, v1}, Lcom/facebook/orca/tabs/TabIndicatorViewFactory;->a(I)Lcom/facebook/orca/tabs/TabIndicatorView;

    move-result-object v0

    iput-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->Q:Lcom/facebook/orca/tabs/TabIndicatorView;

    .line 476
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->A:Lcom/facebook/orca/common/ui/tabs/FragmentTabHost;

    const-string v1, "settings"

    invoke-virtual {v0, v1}, Lcom/facebook/orca/common/ui/tabs/FragmentTabHost;->a(Ljava/lang/String;)Lcom/facebook/orca/common/ui/tabs/FragmentTabHost$TabSpec;

    move-result-object v0

    iget-object v1, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->Q:Lcom/facebook/orca/tabs/TabIndicatorView;

    invoke-virtual {v0, v1}, Lcom/facebook/orca/common/ui/tabs/FragmentTabHost$TabSpec;->a(Landroid/view/View;)Lcom/facebook/orca/common/ui/tabs/FragmentTabHost$TabSpec;

    move-result-object v0

    const v1, 0x7f0800f1

    invoke-virtual {v0, v1}, Lcom/facebook/orca/common/ui/tabs/FragmentTabHost$TabSpec;->a(I)Lcom/facebook/orca/common/ui/tabs/FragmentTabHost$TabSpec;

    move-result-object v0

    .line 480
    iget-object v1, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->A:Lcom/facebook/orca/common/ui/tabs/FragmentTabHost;

    invoke-virtual {v1, v0}, Lcom/facebook/orca/common/ui/tabs/FragmentTabHost;->a(Lcom/facebook/orca/common/ui/tabs/FragmentTabHost$TabSpec;)V

    .line 481
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->ab:Lcom/facebook/orca/threads/ThreadSummary;

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->ab:Lcom/facebook/orca/threads/ThreadSummary;

    invoke-virtual {v0}, Lcom/facebook/orca/threads/ThreadSummary;->v()Z

    move-result v0

    if-nez v0, :cond_1

    .line 482
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->Q:Lcom/facebook/orca/tabs/TabIndicatorView;

    invoke-virtual {v0, v2}, Lcom/facebook/orca/tabs/TabIndicatorView;->setVisibility(I)V

    .line 486
    :cond_1
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->o:Lcom/facebook/orca/tabs/TabIndicatorViewFactory;

    const v1, 0x7f0a002d

    invoke-virtual {v0, v1}, Lcom/facebook/orca/tabs/TabIndicatorViewFactory;->a(I)Lcom/facebook/orca/tabs/TabIndicatorView;

    move-result-object v0

    iput-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->R:Lcom/facebook/orca/tabs/TabIndicatorView;

    .line 488
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->A:Lcom/facebook/orca/common/ui/tabs/FragmentTabHost;

    const-string v1, "people"

    invoke-virtual {v0, v1}, Lcom/facebook/orca/common/ui/tabs/FragmentTabHost;->a(Ljava/lang/String;)Lcom/facebook/orca/common/ui/tabs/FragmentTabHost$TabSpec;

    move-result-object v0

    iget-object v1, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->R:Lcom/facebook/orca/tabs/TabIndicatorView;

    invoke-virtual {v0, v1}, Lcom/facebook/orca/common/ui/tabs/FragmentTabHost$TabSpec;->a(Landroid/view/View;)Lcom/facebook/orca/common/ui/tabs/FragmentTabHost$TabSpec;

    move-result-object v0

    const v1, 0x7f0800f2

    invoke-virtual {v0, v1}, Lcom/facebook/orca/common/ui/tabs/FragmentTabHost$TabSpec;->a(I)Lcom/facebook/orca/common/ui/tabs/FragmentTabHost$TabSpec;

    move-result-object v0

    .line 492
    iget-object v1, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->A:Lcom/facebook/orca/common/ui/tabs/FragmentTabHost;

    invoke-virtual {v1, v0}, Lcom/facebook/orca/common/ui/tabs/FragmentTabHost;->a(Lcom/facebook/orca/common/ui/tabs/FragmentTabHost$TabSpec;)V

    .line 495
    invoke-static {}, Lcom/facebook/orca/threadview/ThreadViewMapActivityTabShim;->a()Z

    move-result v0

    if-eqz v0, :cond_2

    .line 496
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->o:Lcom/facebook/orca/tabs/TabIndicatorViewFactory;

    const v1, 0x7f0a002e

    invoke-virtual {v0, v1}, Lcom/facebook/orca/tabs/TabIndicatorViewFactory;->a(I)Lcom/facebook/orca/tabs/TabIndicatorView;

    move-result-object v0

    iput-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->S:Lcom/facebook/orca/tabs/TabIndicatorView;

    .line 498
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->A:Lcom/facebook/orca/common/ui/tabs/FragmentTabHost;

    const-string v1, "map"

    invoke-virtual {v0, v1}, Lcom/facebook/orca/common/ui/tabs/FragmentTabHost;->a(Ljava/lang/String;)Lcom/facebook/orca/common/ui/tabs/FragmentTabHost$TabSpec;

    move-result-object v0

    iget-object v1, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->S:Lcom/facebook/orca/tabs/TabIndicatorView;

    invoke-virtual {v0, v1}, Lcom/facebook/orca/common/ui/tabs/FragmentTabHost$TabSpec;->a(Landroid/view/View;)Lcom/facebook/orca/common/ui/tabs/FragmentTabHost$TabSpec;

    move-result-object v0

    const v1, 0x7f0800f3

    invoke-virtual {v0, v1}, Lcom/facebook/orca/common/ui/tabs/FragmentTabHost$TabSpec;->a(I)Lcom/facebook/orca/common/ui/tabs/FragmentTabHost$TabSpec;

    move-result-object v0

    .line 502
    iget-object v1, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->A:Lcom/facebook/orca/common/ui/tabs/FragmentTabHost;

    invoke-virtual {v1, v0}, Lcom/facebook/orca/common/ui/tabs/FragmentTabHost;->a(Lcom/facebook/orca/common/ui/tabs/FragmentTabHost$TabSpec;)V

    .line 505
    :cond_2
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->A:Lcom/facebook/orca/common/ui/tabs/FragmentTabHost;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Lcom/facebook/orca/common/ui/tabs/FragmentTabHost;->setCurrentTab(I)V

    .line 506
    invoke-direct {p0}, Lcom/facebook/orca/threadview/ThreadViewActivity;->s()V

    .line 508
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->A:Lcom/facebook/orca/common/ui/tabs/FragmentTabHost;

    new-instance v1, Lcom/facebook/orca/threadview/ThreadViewActivity$6;

    invoke-direct {v1, p0}, Lcom/facebook/orca/threadview/ThreadViewActivity$6;-><init>(Lcom/facebook/orca/threadview/ThreadViewActivity;)V

    invoke-virtual {v0, v1}, Lcom/facebook/orca/common/ui/tabs/FragmentTabHost;->setOnTabChangedListener(Lcom/facebook/orca/common/ui/tabs/FragmentTabHost$OnTabChangeListener;)V

    .line 514
    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->V:Z

    .line 515
    invoke-direct {p0}, Lcom/facebook/orca/threadview/ThreadViewActivity;->p()V

    goto/16 :goto_0
.end method

.method private p()V
    .locals 5

    .prologue
    .line 519
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->A:Lcom/facebook/orca/common/ui/tabs/FragmentTabHost;

    invoke-virtual {v0}, Lcom/facebook/orca/common/ui/tabs/FragmentTabHost;->a()Ljava/lang/String;

    move-result-object v0

    .line 520
    iget-object v1, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->A:Lcom/facebook/orca/common/ui/tabs/FragmentTabHost;

    invoke-virtual {v1}, Lcom/facebook/orca/common/ui/tabs/FragmentTabHost;->b()Landroid/view/View;

    .line 521
    const-string v1, "messages"

    invoke-virtual {v1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-nez v1, :cond_0

    .line 522
    iput-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->W:Ljava/lang/String;

    .line 523
    iget-object v1, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->G:Ljava/lang/String;

    invoke-static {v1}, Lcom/facebook/orca/prefs/PrefKeys;->c(Ljava/lang/String;)Lcom/facebook/orca/prefs/PrefKey;

    move-result-object v1

    .line 524
    iget-object v2, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->p:Lcom/facebook/orca/prefs/OrcaSharedPreferences;

    invoke-virtual {v2}, Lcom/facebook/orca/prefs/OrcaSharedPreferences;->a()Lcom/facebook/orca/prefs/OrcaSharedPreferences$Editor;

    move-result-object v2

    .line 525
    invoke-virtual {v2, v1, v0}, Lcom/facebook/orca/prefs/OrcaSharedPreferences$Editor;->a(Lcom/facebook/orca/prefs/PrefKey;Ljava/lang/String;)V

    .line 526
    invoke-virtual {v2}, Lcom/facebook/orca/prefs/OrcaSharedPreferences$Editor;->a()V

    .line 529
    :cond_0
    iget-object v1, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->ab:Lcom/facebook/orca/threads/ThreadSummary;

    if-eqz v1, :cond_1

    .line 530
    const-string v1, "messages"

    invoke-virtual {v1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_3

    .line 531
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->L:Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;

    iget-object v1, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->ab:Lcom/facebook/orca/threads/ThreadSummary;

    iget-object v2, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->ac:Lcom/facebook/orca/threads/MessagesCollection;

    iget-wide v3, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->ad:J

    invoke-virtual {v0, v1, v2, v3, v4}, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->a(Lcom/facebook/orca/threads/ThreadSummary;Lcom/facebook/orca/threads/MessagesCollection;J)V

    .line 540
    :cond_1
    :goto_0
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->F:Lcom/facebook/orca/threadview/ThreadAlertRateLimitView;

    iget-object v1, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->ac:Lcom/facebook/orca/threads/MessagesCollection;

    invoke-virtual {v0, v1}, Lcom/facebook/orca/threadview/ThreadAlertRateLimitView;->a(Lcom/facebook/orca/threads/MessagesCollection;)V

    .line 542
    iget-boolean v0, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->Y:Z

    if-nez v0, :cond_2

    .line 543
    invoke-direct {p0}, Lcom/facebook/orca/threadview/ThreadViewActivity;->s()V

    .line 545
    :cond_2
    return-void

    .line 532
    :cond_3
    const-string v1, "settings"

    invoke-virtual {v1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_4

    .line 533
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->N:Lcom/facebook/orca/threadview/ThreadViewDetailsFragmentTab;

    iget-object v1, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->ab:Lcom/facebook/orca/threads/ThreadSummary;

    invoke-virtual {v0, v1}, Lcom/facebook/orca/threadview/ThreadViewDetailsFragmentTab;->a(Lcom/facebook/orca/threads/ThreadSummary;)V

    goto :goto_0

    .line 534
    :cond_4
    const-string v1, "people"

    invoke-virtual {v1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_5

    .line 535
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->M:Lcom/facebook/orca/threadview/ThreadViewMembersFragmentTab;

    iget-object v1, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->ab:Lcom/facebook/orca/threads/ThreadSummary;

    invoke-virtual {v0, v1}, Lcom/facebook/orca/threadview/ThreadViewMembersFragmentTab;->a(Lcom/facebook/orca/threads/ThreadSummary;)V

    goto :goto_0

    .line 536
    :cond_5
    const-string v1, "map"

    invoke-virtual {v1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_1

    .line 537
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->O:Lcom/facebook/orca/threadview/ThreadViewMapFragmentTab;

    iget-object v1, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->ab:Lcom/facebook/orca/threads/ThreadSummary;

    iget-object v2, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->ac:Lcom/facebook/orca/threads/MessagesCollection;

    invoke-virtual {v2}, Lcom/facebook/orca/threads/MessagesCollection;->b()Lcom/google/common/collect/ImmutableList;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Lcom/facebook/orca/threadview/ThreadViewMapFragmentTab;->a(Lcom/facebook/orca/threads/ThreadSummary;Lcom/google/common/collect/ImmutableList;)V

    goto :goto_0
.end method

.method private q()V
    .locals 5

    .prologue
    .line 748
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->I:Lcom/facebook/orca/common/ui/widgets/text/ThreadNameView;

    iget-object v1, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->ab:Lcom/facebook/orca/threads/ThreadSummary;

    invoke-virtual {v0, v1}, Lcom/facebook/orca/common/ui/widgets/text/ThreadNameView;->setThreadSummary(Lcom/facebook/orca/threads/ThreadSummary;)V

    .line 750
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->Q:Lcom/facebook/orca/tabs/TabIndicatorView;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->ab:Lcom/facebook/orca/threads/ThreadSummary;

    invoke-virtual {v0}, Lcom/facebook/orca/threads/ThreadSummary;->v()Z

    move-result v0

    if-nez v0, :cond_0

    .line 751
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->Q:Lcom/facebook/orca/tabs/TabIndicatorView;

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Lcom/facebook/orca/tabs/TabIndicatorView;->setVisibility(I)V

    .line 754
    :cond_0
    iget-boolean v0, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->X:Z

    if-eqz v0, :cond_2

    .line 755
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->L:Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;

    if-eqz v0, :cond_1

    .line 756
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->L:Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;

    iget-object v1, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->ab:Lcom/facebook/orca/threads/ThreadSummary;

    iget-object v2, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->ac:Lcom/facebook/orca/threads/MessagesCollection;

    iget-wide v3, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->ad:J

    invoke-virtual {v0, v1, v2, v3, v4}, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->a(Lcom/facebook/orca/threads/ThreadSummary;Lcom/facebook/orca/threads/MessagesCollection;J)V

    .line 769
    :cond_1
    :goto_0
    return-void

    .line 759
    :cond_2
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->M:Lcom/facebook/orca/threadview/ThreadViewMembersFragmentTab;

    if-eqz v0, :cond_3

    .line 760
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->M:Lcom/facebook/orca/threadview/ThreadViewMembersFragmentTab;

    iget-object v1, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->ab:Lcom/facebook/orca/threads/ThreadSummary;

    invoke-virtual {v0, v1}, Lcom/facebook/orca/threadview/ThreadViewMembersFragmentTab;->a(Lcom/facebook/orca/threads/ThreadSummary;)V

    .line 762
    :cond_3
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->N:Lcom/facebook/orca/threadview/ThreadViewDetailsFragmentTab;

    if-eqz v0, :cond_4

    .line 763
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->N:Lcom/facebook/orca/threadview/ThreadViewDetailsFragmentTab;

    iget-object v1, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->ab:Lcom/facebook/orca/threads/ThreadSummary;

    invoke-virtual {v0, v1}, Lcom/facebook/orca/threadview/ThreadViewDetailsFragmentTab;->a(Lcom/facebook/orca/threads/ThreadSummary;)V

    .line 765
    :cond_4
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->O:Lcom/facebook/orca/threadview/ThreadViewMapFragmentTab;

    if-eqz v0, :cond_1

    .line 766
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->O:Lcom/facebook/orca/threadview/ThreadViewMapFragmentTab;

    iget-object v1, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->ab:Lcom/facebook/orca/threads/ThreadSummary;

    iget-object v2, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->ac:Lcom/facebook/orca/threads/MessagesCollection;

    invoke-virtual {v2}, Lcom/facebook/orca/threads/MessagesCollection;->b()Lcom/google/common/collect/ImmutableList;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Lcom/facebook/orca/threadview/ThreadViewMapFragmentTab;->a(Lcom/facebook/orca/threads/ThreadSummary;Lcom/google/common/collect/ImmutableList;)V

    goto :goto_0
.end method

.method private r()V
    .locals 4

    .prologue
    const/4 v1, 0x1

    const/4 v3, 0x0

    .line 839
    iget-boolean v0, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->X:Z

    if-nez v0, :cond_0

    move v0, v1

    :goto_0
    iput-boolean v0, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->X:Z

    .line 840
    iput-boolean v1, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->Y:Z

    .line 841
    invoke-direct {p0}, Lcom/facebook/orca/threadview/ThreadViewActivity;->o()V

    .line 842
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->L:Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;

    invoke-virtual {v0}, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->o()Landroid/view/View;

    move-result-object v0

    .line 843
    iget-object v1, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->D:Landroid/view/View;

    invoke-virtual {v1, v3}, Landroid/view/View;->setVisibility(I)V

    .line 844
    invoke-virtual {v0, v3}, Landroid/view/View;->setVisibility(I)V

    .line 845
    iget-boolean v1, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->X:Z

    if-eqz v1, :cond_1

    .line 846
    iget-object v1, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->D:Landroid/view/View;

    invoke-direct {p0}, Lcom/facebook/orca/threadview/ThreadViewActivity;->v()Landroid/view/animation/Animation;

    move-result-object v2

    invoke-virtual {v1, v2}, Landroid/view/View;->setAnimation(Landroid/view/animation/Animation;)V

    .line 847
    invoke-direct {p0}, Lcom/facebook/orca/threadview/ThreadViewActivity;->w()Landroid/view/animation/Animation;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/view/View;->setAnimation(Landroid/view/animation/Animation;)V

    .line 860
    :goto_1
    iget-object v1, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->D:Landroid/view/View;

    invoke-virtual {v1}, Landroid/view/View;->getAnimation()Landroid/view/animation/Animation;

    move-result-object v1

    new-instance v2, Lcom/facebook/orca/threadview/ThreadViewActivity$8;

    invoke-direct {v2, p0, v0}, Lcom/facebook/orca/threadview/ThreadViewActivity$8;-><init>(Lcom/facebook/orca/threadview/ThreadViewActivity;Landroid/view/View;)V

    invoke-virtual {v1, v2}, Landroid/view/animation/Animation;->setAnimationListener(Landroid/view/animation/Animation$AnimationListener;)V

    .line 884
    return-void

    :cond_0
    move v0, v3

    .line 839
    goto :goto_0

    .line 849
    :cond_1
    iget-object v1, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->F:Lcom/facebook/orca/threadview/ThreadAlertRateLimitView;

    invoke-virtual {v1}, Lcom/facebook/orca/threadview/ThreadAlertRateLimitView;->b()Z

    move-result v1

    if-eqz v1, :cond_2

    .line 850
    iget-object v1, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->A:Lcom/facebook/orca/common/ui/tabs/FragmentTabHost;

    const-string v2, "settings"

    invoke-virtual {v1, v2}, Lcom/facebook/orca/common/ui/tabs/FragmentTabHost;->setCurrentTabByTag(Ljava/lang/String;)V

    .line 854
    :goto_2
    iget-object v1, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->D:Landroid/view/View;

    invoke-direct {p0}, Lcom/facebook/orca/threadview/ThreadViewActivity;->u()Landroid/view/animation/Animation;

    move-result-object v2

    invoke-virtual {v1, v2}, Landroid/view/View;->setAnimation(Landroid/view/animation/Animation;)V

    .line 855
    invoke-direct {p0}, Lcom/facebook/orca/threadview/ThreadViewActivity;->x()Landroid/view/animation/Animation;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/view/View;->setAnimation(Landroid/view/animation/Animation;)V

    .line 856
    iget-object v1, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->u:Landroid/view/inputmethod/InputMethodManager;

    iget-object v2, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->L:Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;

    invoke-virtual {v2}, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->o()Landroid/view/View;

    move-result-object v2

    invoke-virtual {v2}, Landroid/view/View;->getWindowToken()Landroid/os/IBinder;

    move-result-object v2

    invoke-virtual {v1, v2, v3}, Landroid/view/inputmethod/InputMethodManager;->hideSoftInputFromWindow(Landroid/os/IBinder;I)Z

    goto :goto_1

    .line 852
    :cond_2
    iget-object v1, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->A:Lcom/facebook/orca/common/ui/tabs/FragmentTabHost;

    iget-object v2, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->W:Ljava/lang/String;

    invoke-virtual {v1, v2}, Lcom/facebook/orca/common/ui/tabs/FragmentTabHost;->setCurrentTabByTag(Ljava/lang/String;)V

    goto :goto_2
.end method

.method private s()V
    .locals 2

    .prologue
    .line 887
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->B:Lcom/facebook/orca/common/ui/titlebar/TitleBar;

    iget-boolean v1, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->X:Z

    if-eqz v1, :cond_0

    iget-object v1, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->J:Ljava/util/List;

    :goto_0
    invoke-virtual {v0, v1}, Lcom/facebook/orca/common/ui/titlebar/TitleBar;->setButtonSpecs(Ljava/util/List;)V

    .line 888
    return-void

    .line 887
    :cond_0
    iget-object v1, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->K:Ljava/util/List;

    goto :goto_0
.end method

.method private t()V
    .locals 6

    .prologue
    .line 891
    invoke-virtual {p0}, Lcom/facebook/orca/threadview/ThreadViewActivity;->hasWindowFocus()Z

    move-result v0

    if-eqz v0, :cond_0

    iget-boolean v0, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->T:Z

    if-nez v0, :cond_1

    .line 905
    :cond_0
    :goto_0
    return-void

    .line 896
    :cond_1
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->a:Lcom/facebook/orca/cache/DataCache;

    iget-object v1, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->G:Ljava/lang/String;

    invoke-virtual {v0, v1}, Lcom/facebook/orca/cache/DataCache;->a(Ljava/lang/String;)J

    move-result-wide v0

    .line 897
    iget-object v2, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->ab:Lcom/facebook/orca/threads/ThreadSummary;

    if-eqz v2, :cond_0

    iget-object v2, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->ab:Lcom/facebook/orca/threads/ThreadSummary;

    invoke-virtual {v2}, Lcom/facebook/orca/threads/ThreadSummary;->b()J

    move-result-wide v2

    cmp-long v0, v2, v0

    if-lez v0, :cond_0

    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->z:Lcom/facebook/orca/ops/OrcaServiceFragment;

    invoke-virtual {v0}, Lcom/facebook/orca/ops/OrcaServiceFragment;->c()Lcom/facebook/orca/ops/OrcaServiceOperation$State;

    move-result-object v0

    sget-object v1, Lcom/facebook/orca/ops/OrcaServiceOperation$State;->INIT:Lcom/facebook/orca/ops/OrcaServiceOperation$State;

    if-ne v0, v1, :cond_0

    .line 899
    new-instance v0, Lcom/facebook/orca/server/MarkThreadParams;

    iget-object v1, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->ab:Lcom/facebook/orca/threads/ThreadSummary;

    invoke-virtual {v1}, Lcom/facebook/orca/threads/ThreadSummary;->a()Ljava/lang/String;

    move-result-object v1

    sget-object v2, Lcom/facebook/orca/server/MarkThreadParams$Mark;->READ:Lcom/facebook/orca/server/MarkThreadParams$Mark;

    const/4 v3, 0x1

    iget-object v4, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->ab:Lcom/facebook/orca/threads/ThreadSummary;

    invoke-virtual {v4}, Lcom/facebook/orca/threads/ThreadSummary;->b()J

    move-result-wide v4

    invoke-direct/range {v0 .. v5}, Lcom/facebook/orca/server/MarkThreadParams;-><init>(Ljava/lang/String;Lcom/facebook/orca/server/MarkThreadParams$Mark;ZJ)V

    .line 901
    new-instance v1, Landroid/os/Bundle;

    invoke-direct {v1}, Landroid/os/Bundle;-><init>()V

    .line 902
    const-string v2, "markThreadParams"

    invoke-virtual {v1, v2, v0}, Landroid/os/Bundle;->putParcelable(Ljava/lang/String;Landroid/os/Parcelable;)V

    .line 903
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->z:Lcom/facebook/orca/ops/OrcaServiceFragment;

    const-string v2, "mark_thread"

    invoke-virtual {v0, v2, v1}, Lcom/facebook/orca/ops/OrcaServiceFragment;->a(Ljava/lang/String;Landroid/os/Bundle;)V

    goto :goto_0
.end method

.method private u()Landroid/view/animation/Animation;
    .locals 9

    .prologue
    const/4 v4, 0x0

    const/4 v1, 0x2

    .line 908
    new-instance v0, Landroid/view/animation/TranslateAnimation;

    const/high16 v2, 0x3f80

    move v3, v1

    move v5, v1

    move v6, v4

    move v7, v1

    move v8, v4

    invoke-direct/range {v0 .. v8}, Landroid/view/animation/TranslateAnimation;-><init>(IFIFIFIF)V

    .line 911
    const-wide/16 v1, 0x12c

    invoke-virtual {v0, v1, v2}, Landroid/view/animation/Animation;->setDuration(J)V

    .line 912
    new-instance v1, Landroid/view/animation/AccelerateInterpolator;

    invoke-direct {v1}, Landroid/view/animation/AccelerateInterpolator;-><init>()V

    invoke-virtual {v0, v1}, Landroid/view/animation/Animation;->setInterpolator(Landroid/view/animation/Interpolator;)V

    .line 913
    return-object v0
.end method

.method private v()Landroid/view/animation/Animation;
    .locals 9

    .prologue
    const/4 v2, 0x0

    const/4 v1, 0x2

    .line 917
    new-instance v0, Landroid/view/animation/TranslateAnimation;

    const/high16 v4, 0x3f80

    move v3, v1

    move v5, v1

    move v6, v2

    move v7, v1

    move v8, v2

    invoke-direct/range {v0 .. v8}, Landroid/view/animation/TranslateAnimation;-><init>(IFIFIFIF)V

    .line 920
    const-wide/16 v1, 0x12c

    invoke-virtual {v0, v1, v2}, Landroid/view/animation/Animation;->setDuration(J)V

    .line 921
    new-instance v1, Landroid/view/animation/AccelerateInterpolator;

    invoke-direct {v1}, Landroid/view/animation/AccelerateInterpolator;-><init>()V

    invoke-virtual {v0, v1}, Landroid/view/animation/Animation;->setInterpolator(Landroid/view/animation/Interpolator;)V

    .line 922
    return-object v0
.end method

.method private w()Landroid/view/animation/Animation;
    .locals 9

    .prologue
    const/4 v4, 0x0

    const/4 v1, 0x2

    .line 926
    new-instance v0, Landroid/view/animation/TranslateAnimation;

    const/high16 v2, -0x4080

    move v3, v1

    move v5, v1

    move v6, v4

    move v7, v1

    move v8, v4

    invoke-direct/range {v0 .. v8}, Landroid/view/animation/TranslateAnimation;-><init>(IFIFIFIF)V

    .line 929
    const-wide/16 v1, 0x12c

    invoke-virtual {v0, v1, v2}, Landroid/view/animation/Animation;->setDuration(J)V

    .line 930
    new-instance v1, Landroid/view/animation/AccelerateInterpolator;

    invoke-direct {v1}, Landroid/view/animation/AccelerateInterpolator;-><init>()V

    invoke-virtual {v0, v1}, Landroid/view/animation/Animation;->setInterpolator(Landroid/view/animation/Interpolator;)V

    .line 931
    return-object v0
.end method

.method private x()Landroid/view/animation/Animation;
    .locals 9

    .prologue
    const/4 v2, 0x0

    const/4 v1, 0x2

    .line 935
    new-instance v0, Landroid/view/animation/TranslateAnimation;

    const/high16 v4, -0x4080

    move v3, v1

    move v5, v1

    move v6, v2

    move v7, v1

    move v8, v2

    invoke-direct/range {v0 .. v8}, Landroid/view/animation/TranslateAnimation;-><init>(IFIFIFIF)V

    .line 938
    const-wide/16 v1, 0x12c

    invoke-virtual {v0, v1, v2}, Landroid/view/animation/Animation;->setDuration(J)V

    .line 939
    new-instance v1, Landroid/view/animation/AccelerateInterpolator;

    invoke-direct {v1}, Landroid/view/animation/AccelerateInterpolator;-><init>()V

    invoke-virtual {v0, v1}, Landroid/view/animation/Animation;->setInterpolator(Landroid/view/animation/Interpolator;)V

    .line 940
    return-object v0
.end method


# virtual methods
.method protected a(Landroid/os/Bundle;)V
    .locals 1
    .parameter

    .prologue
    .line 143
    invoke-super {p0, p1}, Lcom/facebook/orca/activity/OrcaFragmentActivity;->a(Landroid/os/Bundle;)V

    .line 144
    const v0, 0x7f03003e

    invoke-virtual {p0, v0}, Lcom/facebook/orca/threadview/ThreadViewActivity;->setContentView(I)V

    .line 145
    return-void
.end method

.method a(Lcom/facebook/orca/compose/ComposeMode;)V
    .locals 1
    .parameter

    .prologue
    .line 817
    iput-object p1, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->ae:Lcom/facebook/orca/compose/ComposeMode;

    .line 818
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->E:Lcom/facebook/orca/compose/LocationNuxView;

    invoke-virtual {v0, p1}, Lcom/facebook/orca/compose/LocationNuxView;->setComposeMode(Lcom/facebook/orca/compose/ComposeMode;)V

    .line 819
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->F:Lcom/facebook/orca/threadview/ThreadAlertRateLimitView;

    invoke-virtual {v0, p1}, Lcom/facebook/orca/threadview/ThreadAlertRateLimitView;->setComposeMode(Lcom/facebook/orca/compose/ComposeMode;)V

    .line 820
    return-void
.end method

.method a(Lcom/facebook/orca/server/ModifyThreadParams;)V
    .locals 3
    .parameter

    .prologue
    .line 772
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->y:Lcom/facebook/orca/ops/OrcaServiceFragment;

    invoke-virtual {v0}, Lcom/facebook/orca/ops/OrcaServiceFragment;->c()Lcom/facebook/orca/ops/OrcaServiceOperation$State;

    move-result-object v0

    sget-object v1, Lcom/facebook/orca/ops/OrcaServiceOperation$State;->INIT:Lcom/facebook/orca/ops/OrcaServiceOperation$State;

    if-eq v0, v1, :cond_0

    .line 779
    :goto_0
    return-void

    .line 776
    :cond_0
    new-instance v0, Landroid/os/Bundle;

    invoke-direct {v0}, Landroid/os/Bundle;-><init>()V

    .line 777
    const-string v1, "modifyThreadParams"

    invoke-virtual {v0, v1, p1}, Landroid/os/Bundle;->putParcelable(Ljava/lang/String;Landroid/os/Parcelable;)V

    .line 778
    iget-object v1, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->y:Lcom/facebook/orca/ops/OrcaServiceFragment;

    const-string v2, "modify_thread"

    invoke-virtual {v1, v2, v0}, Lcom/facebook/orca/ops/OrcaServiceFragment;->a(Ljava/lang/String;Landroid/os/Bundle;)V

    goto :goto_0
.end method

.method a(Z)V
    .locals 7
    .parameter

    .prologue
    .line 683
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->w:Lcom/facebook/orca/ops/OrcaServiceFragment;

    invoke-virtual {v0}, Lcom/facebook/orca/ops/OrcaServiceFragment;->c()Lcom/facebook/orca/ops/OrcaServiceOperation$State;

    move-result-object v0

    sget-object v1, Lcom/facebook/orca/ops/OrcaServiceOperation$State;->INIT:Lcom/facebook/orca/ops/OrcaServiceOperation$State;

    if-eq v0, v1, :cond_1

    .line 718
    :cond_0
    :goto_0
    return-void

    .line 687
    :cond_1
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->x:Lcom/facebook/orca/ops/OrcaServiceFragment;

    invoke-virtual {v0}, Lcom/facebook/orca/ops/OrcaServiceFragment;->c()Lcom/facebook/orca/ops/OrcaServiceOperation$State;

    move-result-object v0

    sget-object v1, Lcom/facebook/orca/ops/OrcaServiceOperation$State;->INIT:Lcom/facebook/orca/ops/OrcaServiceOperation$State;

    if-ne v0, v1, :cond_0

    .line 692
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->ab:Lcom/facebook/orca/threads/ThreadSummary;

    if-eqz v0, :cond_0

    .line 697
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->ac:Lcom/facebook/orca/threads/MessagesCollection;

    invoke-virtual {v0}, Lcom/facebook/orca/threads/MessagesCollection;->b()Lcom/google/common/collect/ImmutableList;

    move-result-object v0

    .line 698
    invoke-virtual {v0}, Lcom/google/common/collect/ImmutableList;->size()I

    move-result v1

    if-eqz v1, :cond_0

    .line 702
    iget-object v1, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->ac:Lcom/facebook/orca/threads/MessagesCollection;

    invoke-virtual {v1}, Lcom/facebook/orca/threads/MessagesCollection;->d()Z

    move-result v1

    if-nez v1, :cond_0

    .line 707
    iget-object v1, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->s:Lcom/facebook/orca/common/ui/widgets/AnchorableToast;

    invoke-virtual {v1}, Lcom/facebook/orca/common/ui/widgets/AnchorableToast;->a()V

    .line 708
    const-wide/16 v2, 0x0

    .line 709
    invoke-virtual {v0}, Lcom/google/common/collect/ImmutableList;->size()I

    move-result v1

    const/4 v4, 0x1

    sub-int/2addr v1, v4

    invoke-virtual {v0, v1}, Lcom/google/common/collect/ImmutableList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/facebook/orca/threads/Message;

    invoke-virtual {v0}, Lcom/facebook/orca/threads/Message;->c()J

    move-result-wide v4

    .line 710
    new-instance v0, Lcom/facebook/orca/server/FetchMoreMessagesParams;

    iget-object v1, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->G:Ljava/lang/String;

    const/16 v6, 0x32

    invoke-direct/range {v0 .. v6}, Lcom/facebook/orca/server/FetchMoreMessagesParams;-><init>(Ljava/lang/String;JJI)V

    .line 712
    iget-object v1, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->L:Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;

    invoke-virtual {v1}, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->b()V

    .line 714
    iput-boolean p1, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->aa:Z

    .line 715
    new-instance v1, Landroid/os/Bundle;

    invoke-direct {v1}, Landroid/os/Bundle;-><init>()V

    .line 716
    const-string v2, "fetchMoreMessagesParams"

    invoke-virtual {v1, v2, v0}, Landroid/os/Bundle;->putParcelable(Ljava/lang/String;Landroid/os/Parcelable;)V

    .line 717
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->x:Lcom/facebook/orca/ops/OrcaServiceFragment;

    const-string v2, "fetch_more_messages"

    invoke-virtual {v0, v2, v1}, Lcom/facebook/orca/ops/OrcaServiceFragment;->a(Ljava/lang/String;Landroid/os/Bundle;)V

    goto :goto_0
.end method

.method b()Ljava/lang/String;
    .locals 1

    .prologue
    .line 398
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->G:Ljava/lang/String;

    return-object v0
.end method

.method public b(Landroid/os/Bundle;)V
    .locals 8
    .parameter

    .prologue
    const/4 v7, 0x2

    const/16 v6, 0xff

    const/4 v5, 0x1

    .line 149
    invoke-super {p0, p1}, Lcom/facebook/orca/activity/OrcaFragmentActivity;->b(Landroid/os/Bundle;)V

    .line 151
    invoke-virtual {p0}, Lcom/facebook/orca/threadview/ThreadViewActivity;->getWindow()Landroid/view/Window;

    move-result-object v0

    invoke-virtual {v0}, Landroid/view/Window;->getWindowManager()Landroid/view/WindowManager;

    move-result-object v0

    invoke-interface {v0}, Landroid/view/WindowManager;->getDefaultDisplay()Landroid/view/Display;

    move-result-object v0

    .line 152
    invoke-virtual {v0}, Landroid/view/Display;->getWidth()I

    move-result v1

    invoke-virtual {v0}, Landroid/view/Display;->getHeight()I

    move-result v0

    if-le v1, v0, :cond_0

    move v0, v5

    .line 154
    :goto_0
    invoke-virtual {p0}, Lcom/facebook/orca/threadview/ThreadViewActivity;->getIntent()Landroid/content/Intent;

    move-result-object v1

    .line 155
    const-string v2, "thread_id"

    invoke-virtual {v1, v2}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    iput-object v1, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->G:Ljava/lang/String;

    .line 157
    invoke-virtual {p0}, Lcom/facebook/orca/threadview/ThreadViewActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    .line 158
    invoke-static {}, Lcom/facebook/orca/common/ui/titlebar/TitleBarButtonSpec;->newBuilder()Lcom/facebook/orca/common/ui/titlebar/TitleBarButtonSpecBuilder;

    move-result-object v2

    invoke-virtual {v2, v5}, Lcom/facebook/orca/common/ui/titlebar/TitleBarButtonSpecBuilder;->a(I)Lcom/facebook/orca/common/ui/titlebar/TitleBarButtonSpecBuilder;

    move-result-object v2

    const v3, 0x7f02002d

    invoke-virtual {v1, v3}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v3

    invoke-virtual {v2, v3}, Lcom/facebook/orca/common/ui/titlebar/TitleBarButtonSpecBuilder;->a(Landroid/graphics/drawable/Drawable;)Lcom/facebook/orca/common/ui/titlebar/TitleBarButtonSpecBuilder;

    move-result-object v2

    invoke-virtual {v2}, Lcom/facebook/orca/common/ui/titlebar/TitleBarButtonSpecBuilder;->f()Lcom/facebook/orca/common/ui/titlebar/TitleBarButtonSpec;

    move-result-object v2

    .line 162
    invoke-static {}, Lcom/facebook/orca/common/ui/titlebar/TitleBarButtonSpec;->newBuilder()Lcom/facebook/orca/common/ui/titlebar/TitleBarButtonSpecBuilder;

    move-result-object v3

    invoke-virtual {v3, v7}, Lcom/facebook/orca/common/ui/titlebar/TitleBarButtonSpecBuilder;->a(I)Lcom/facebook/orca/common/ui/titlebar/TitleBarButtonSpecBuilder;

    move-result-object v3

    const v4, 0x7f02000d

    invoke-virtual {v1, v4}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v4

    invoke-virtual {v3, v4}, Lcom/facebook/orca/common/ui/titlebar/TitleBarButtonSpecBuilder;->a(Landroid/graphics/drawable/Drawable;)Lcom/facebook/orca/common/ui/titlebar/TitleBarButtonSpecBuilder;

    move-result-object v3

    invoke-virtual {v3}, Lcom/facebook/orca/common/ui/titlebar/TitleBarButtonSpecBuilder;->f()Lcom/facebook/orca/common/ui/titlebar/TitleBarButtonSpec;

    move-result-object v3

    .line 167
    invoke-static {v2}, Lcom/google/common/collect/ImmutableList;->b(Ljava/lang/Object;)Lcom/google/common/collect/ImmutableList;

    move-result-object v2

    iput-object v2, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->J:Ljava/util/List;

    .line 168
    invoke-static {v3}, Lcom/google/common/collect/ImmutableList;->b(Ljava/lang/Object;)Lcom/google/common/collect/ImmutableList;

    move-result-object v2

    iput-object v2, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->K:Ljava/util/List;

    .line 170
    iget-object v2, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->B:Lcom/facebook/orca/common/ui/titlebar/TitleBar;

    iget-object v3, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->J:Ljava/util/List;

    invoke-virtual {v2, v3}, Lcom/facebook/orca/common/ui/titlebar/TitleBar;->setButtonSpecs(Ljava/util/List;)V

    .line 171
    iget-object v2, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->B:Lcom/facebook/orca/common/ui/titlebar/TitleBar;

    new-instance v3, Lcom/facebook/orca/threadview/ThreadViewActivity$1;

    invoke-direct {v3, p0}, Lcom/facebook/orca/threadview/ThreadViewActivity$1;-><init>(Lcom/facebook/orca/threadview/ThreadViewActivity;)V

    invoke-virtual {v2, v3}, Lcom/facebook/orca/common/ui/titlebar/TitleBar;->setOnToolbarButtonListener(Lcom/facebook/orca/common/ui/titlebar/TitleBar$OnToolbarButtonListener;)V

    .line 180
    new-instance v2, Lcom/facebook/orca/common/ui/widgets/text/ThreadNameView;

    invoke-direct {v2, p0}, Lcom/facebook/orca/common/ui/widgets/text/ThreadNameView;-><init>(Landroid/content/Context;)V

    iput-object v2, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->I:Lcom/facebook/orca/common/ui/widgets/text/ThreadNameView;

    .line 181
    iget-object v2, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->I:Lcom/facebook/orca/common/ui/widgets/text/ThreadNameView;

    const v3, 0x106000b

    invoke-virtual {v1, v3}, Landroid/content/res/Resources;->getColor(I)I

    move-result v1

    invoke-virtual {v2, v1}, Lcom/facebook/orca/common/ui/widgets/text/ThreadNameView;->setTextColor(I)V

    .line 182
    iget-object v1, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->I:Lcom/facebook/orca/common/ui/widgets/text/ThreadNameView;

    if-eqz v0, :cond_1

    move v0, v5

    :goto_1
    invoke-virtual {v1, v0}, Lcom/facebook/orca/common/ui/widgets/text/ThreadNameView;->setMaxLines(I)V

    .line 183
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->B:Lcom/facebook/orca/common/ui/titlebar/TitleBar;

    iget-object v1, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->I:Lcom/facebook/orca/common/ui/widgets/text/ThreadNameView;

    invoke-virtual {v0, v1}, Lcom/facebook/orca/common/ui/titlebar/TitleBar;->setCustomTitleView(Landroid/view/View;)V

    .line 185
    const-string v0, "fetchThreadOperation"

    invoke-virtual {p0, v0}, Lcom/facebook/orca/threadview/ThreadViewActivity;->a(Ljava/lang/String;)Lcom/facebook/orca/ops/OrcaServiceFragment;

    move-result-object v0

    iput-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->w:Lcom/facebook/orca/ops/OrcaServiceFragment;

    .line 186
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->w:Lcom/facebook/orca/ops/OrcaServiceFragment;

    new-instance v1, Lcom/facebook/orca/threadview/ThreadViewActivity$2;

    invoke-direct {v1, p0}, Lcom/facebook/orca/threadview/ThreadViewActivity$2;-><init>(Lcom/facebook/orca/threadview/ThreadViewActivity;)V

    invoke-virtual {v0, v1}, Lcom/facebook/orca/ops/OrcaServiceFragment;->a(Lcom/facebook/orca/ops/OrcaServiceOperation$OnCompletedListener;)V

    .line 198
    const-string v0, "fetchMoreMessagesOperation"

    invoke-virtual {p0, v0}, Lcom/facebook/orca/threadview/ThreadViewActivity;->a(Ljava/lang/String;)Lcom/facebook/orca/ops/OrcaServiceFragment;

    move-result-object v0

    iput-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->x:Lcom/facebook/orca/ops/OrcaServiceFragment;

    .line 199
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->x:Lcom/facebook/orca/ops/OrcaServiceFragment;

    new-instance v1, Lcom/facebook/orca/threadview/ThreadViewActivity$3;

    invoke-direct {v1, p0}, Lcom/facebook/orca/threadview/ThreadViewActivity$3;-><init>(Lcom/facebook/orca/threadview/ThreadViewActivity;)V

    invoke-virtual {v0, v1}, Lcom/facebook/orca/ops/OrcaServiceFragment;->a(Lcom/facebook/orca/ops/OrcaServiceOperation$OnCompletedListener;)V

    .line 212
    const-string v0, "markAsReadOperation"

    invoke-virtual {p0, v0}, Lcom/facebook/orca/threadview/ThreadViewActivity;->a(Ljava/lang/String;)Lcom/facebook/orca/ops/OrcaServiceFragment;

    move-result-object v0

    iput-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->z:Lcom/facebook/orca/ops/OrcaServiceFragment;

    .line 214
    const-string v0, "saveDetailsOperation"

    invoke-virtual {p0, v0}, Lcom/facebook/orca/threadview/ThreadViewActivity;->a(Ljava/lang/String;)Lcom/facebook/orca/ops/OrcaServiceFragment;

    move-result-object v0

    iput-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->y:Lcom/facebook/orca/ops/OrcaServiceFragment;

    .line 215
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->y:Lcom/facebook/orca/ops/OrcaServiceFragment;

    new-instance v1, Lcom/facebook/orca/threadview/ThreadViewActivity$4;

    invoke-direct {v1, p0}, Lcom/facebook/orca/threadview/ThreadViewActivity$4;-><init>(Lcom/facebook/orca/threadview/ThreadViewActivity;)V

    invoke-virtual {v0, v1}, Lcom/facebook/orca/ops/OrcaServiceFragment;->a(Lcom/facebook/orca/ops/OrcaServiceOperation$OnCompletedListener;)V

    .line 226
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->y:Lcom/facebook/orca/ops/OrcaServiceFragment;

    new-instance v1, Lcom/facebook/orca/ops/DialogBasedProgressIndicator;

    const v2, 0x7f0a003f

    invoke-direct {v1, p0, v2}, Lcom/facebook/orca/ops/DialogBasedProgressIndicator;-><init>(Landroid/content/Context;I)V

    invoke-virtual {v0, v1}, Lcom/facebook/orca/ops/OrcaServiceFragment;->a(Lcom/facebook/orca/ops/OperationProgressIndicator;)V

    .line 229
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->r:Landroid/support/v4/app/FragmentManager;

    const v1, 0x7f0800ed

    invoke-virtual {v0, v1}, Landroid/support/v4/app/FragmentManager;->a(I)Landroid/support/v4/app/Fragment;

    move-result-object v0

    check-cast v0, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;

    iput-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->L:Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;

    .line 231
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->r:Landroid/support/v4/app/FragmentManager;

    const v1, 0x7f0800f1

    invoke-virtual {v0, v1}, Landroid/support/v4/app/FragmentManager;->a(I)Landroid/support/v4/app/Fragment;

    move-result-object v0

    check-cast v0, Lcom/facebook/orca/threadview/ThreadViewDetailsFragmentTab;

    iput-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->N:Lcom/facebook/orca/threadview/ThreadViewDetailsFragmentTab;

    .line 233
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->r:Landroid/support/v4/app/FragmentManager;

    const v1, 0x7f0800f2

    invoke-virtual {v0, v1}, Landroid/support/v4/app/FragmentManager;->a(I)Landroid/support/v4/app/Fragment;

    move-result-object v0

    check-cast v0, Lcom/facebook/orca/threadview/ThreadViewMembersFragmentTab;

    iput-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->M:Lcom/facebook/orca/threadview/ThreadViewMembersFragmentTab;

    .line 235
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->r:Landroid/support/v4/app/FragmentManager;

    const v1, 0x7f0800f3

    invoke-virtual {v0, v1}, Landroid/support/v4/app/FragmentManager;->a(I)Landroid/support/v4/app/Fragment;

    move-result-object v0

    check-cast v0, Lcom/facebook/orca/threadview/ThreadViewMapFragmentTab;

    iput-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->O:Lcom/facebook/orca/threadview/ThreadViewMapFragmentTab;

    .line 237
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->F:Lcom/facebook/orca/threadview/ThreadAlertRateLimitView;

    iget-object v1, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->G:Ljava/lang/String;

    invoke-virtual {v0, v1}, Lcom/facebook/orca/threadview/ThreadAlertRateLimitView;->a(Ljava/lang/String;)V

    .line 239
    sget-object v0, Lcom/facebook/orca/compose/ComposeMode;->SHRUNK:Lcom/facebook/orca/compose/ComposeMode;

    iput-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->ae:Lcom/facebook/orca/compose/ComposeMode;

    .line 240
    iput-boolean v5, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->X:Z

    .line 241
    invoke-direct {p0}, Lcom/facebook/orca/threadview/ThreadViewActivity;->n()V

    .line 244
    invoke-virtual {p0}, Lcom/facebook/orca/threadview/ThreadViewActivity;->getWindow()Landroid/view/Window;

    move-result-object v0

    invoke-virtual {v0}, Landroid/view/Window;->getDecorView()Landroid/view/View;

    move-result-object v0

    invoke-static {v6, v6, v6}, Landroid/graphics/Color;->rgb(III)I

    move-result v1

    invoke-virtual {v0, v1}, Landroid/view/View;->setBackgroundColor(I)V

    .line 246
    invoke-direct {p0}, Lcom/facebook/orca/threadview/ThreadViewActivity;->k()V

    .line 247
    return-void

    .line 152
    :cond_0
    const/4 v0, 0x0

    goto/16 :goto_0

    :cond_1
    move v0, v7

    .line 182
    goto/16 :goto_1
.end method

.method c()V
    .locals 1

    .prologue
    .line 402
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->ab:Lcom/facebook/orca/threads/ThreadSummary;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->L:Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;

    if-eqz v0, :cond_0

    .line 403
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->L:Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;

    invoke-virtual {v0}, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->c()V

    .line 405
    :cond_0
    return-void
.end method

.method d()V
    .locals 4

    .prologue
    .line 408
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->ab:Lcom/facebook/orca/threads/ThreadSummary;

    if-eqz v0, :cond_0

    .line 409
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->ab:Lcom/facebook/orca/threads/ThreadSummary;

    invoke-virtual {v0}, Lcom/facebook/orca/threads/ThreadSummary;->g()Z

    move-result v0

    if-eqz v0, :cond_1

    .line 410
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->q:Lcom/facebook/orca/cache/ThreadDisplayCache;

    iget-object v1, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->ab:Lcom/facebook/orca/threads/ThreadSummary;

    invoke-virtual {v0, v1}, Lcom/facebook/orca/cache/ThreadDisplayCache;->d(Lcom/facebook/orca/threads/ThreadSummary;)Lcom/facebook/orca/threads/ThreadParticipant;

    move-result-object v0

    .line 412
    if-eqz v0, :cond_0

    .line 413
    iget-object v1, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->a:Lcom/facebook/orca/cache/DataCache;

    invoke-virtual {v0}, Lcom/facebook/orca/threads/ThreadParticipant;->c()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v1, v0}, Lcom/facebook/orca/cache/DataCache;->b(Ljava/lang/String;)Lcom/facebook/orca/users/User;

    move-result-object v0

    .line 414
    if-eqz v0, :cond_0

    .line 415
    new-instance v1, Landroid/content/Intent;

    const-class v2, Lcom/facebook/orca/creation/CreateThreadActivity;

    invoke-direct {v1, p0, v2}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 416
    invoke-virtual {v0}, Lcom/facebook/orca/users/User;->i()Lcom/facebook/orca/users/UserFbidIdentifier;

    move-result-object v2

    .line 417
    new-instance v3, Lcom/facebook/orca/users/UserWithIdentifier;

    invoke-direct {v3, v0, v2}, Lcom/facebook/orca/users/UserWithIdentifier;-><init>(Lcom/facebook/orca/users/User;Lcom/facebook/orca/users/UserIdentifier;)V

    .line 419
    const-string v0, "to"

    invoke-virtual {v1, v0, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Landroid/os/Parcelable;)Landroid/content/Intent;

    .line 420
    invoke-virtual {p0, v1}, Lcom/facebook/orca/threadview/ThreadViewActivity;->startActivity(Landroid/content/Intent;)V

    .line 430
    :cond_0
    :goto_0
    return-void

    .line 424
    :cond_1
    new-instance v0, Landroid/content/Intent;

    const-class v1, Lcom/facebook/orca/threadview/AddMembersActivity;

    invoke-direct {v0, p0, v1}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 425
    const-string v1, "android.intent.action.VIEW"

    invoke-virtual {v0, v1}, Landroid/content/Intent;->setAction(Ljava/lang/String;)Landroid/content/Intent;

    .line 426
    const-string v1, "thread_id"

    iget-object v2, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->G:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 427
    invoke-virtual {p0, v0}, Lcom/facebook/orca/threadview/ThreadViewActivity;->startActivity(Landroid/content/Intent;)V

    goto :goto_0
.end method

.method e()V
    .locals 4

    .prologue
    const/4 v3, 0x0

    .line 554
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->a:Lcom/facebook/orca/cache/DataCache;

    iget-object v1, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->G:Ljava/lang/String;

    invoke-virtual {v0, v1}, Lcom/facebook/orca/cache/DataCache;->d(Ljava/lang/String;)Lcom/facebook/orca/threads/ThreadSummary;

    move-result-object v0

    .line 555
    iget-object v1, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->a:Lcom/facebook/orca/cache/DataCache;

    iget-object v2, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->G:Ljava/lang/String;

    invoke-virtual {v1, v2}, Lcom/facebook/orca/cache/DataCache;->f(Ljava/lang/String;)Lcom/facebook/orca/threads/MessagesCollection;

    move-result-object v1

    .line 556
    if-eqz v0, :cond_2

    if-eqz v1, :cond_2

    .line 557
    iput-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->ab:Lcom/facebook/orca/threads/ThreadSummary;

    .line 558
    iput-object v1, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->ac:Lcom/facebook/orca/threads/MessagesCollection;

    .line 559
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->a:Lcom/facebook/orca/cache/DataCache;

    iget-object v1, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->G:Ljava/lang/String;

    invoke-virtual {v0, v1}, Lcom/facebook/orca/cache/DataCache;->g(Ljava/lang/String;)J

    move-result-wide v0

    iput-wide v0, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->ad:J

    .line 561
    invoke-direct {p0, v3}, Lcom/facebook/orca/threadview/ThreadViewActivity;->d(Z)V

    .line 564
    iget-boolean v0, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->Z:Z

    if-eqz v0, :cond_1

    .line 566
    sget-object v0, Lcom/facebook/orca/server/DataFreshnessParam;->CHECK_SERVER_FOR_NEW_DATA:Lcom/facebook/orca/server/DataFreshnessParam;

    invoke-direct {p0, v0}, Lcom/facebook/orca/threadview/ThreadViewActivity;->a(Lcom/facebook/orca/server/DataFreshnessParam;)V

    .line 567
    iput-boolean v3, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->Z:Z

    .line 573
    :cond_0
    :goto_0
    invoke-direct {p0}, Lcom/facebook/orca/threadview/ThreadViewActivity;->q()V

    .line 581
    :goto_1
    return-void

    .line 568
    :cond_1
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->a:Lcom/facebook/orca/cache/DataCache;

    iget-object v1, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->G:Ljava/lang/String;

    const/16 v2, 0x32

    invoke-virtual {v0, v1, v2}, Lcom/facebook/orca/cache/DataCache;->a(Ljava/lang/String;I)Z

    move-result v0

    if-nez v0, :cond_0

    .line 570
    sget-object v0, Lcom/facebook/orca/server/DataFreshnessParam;->PREFER_CACHE_IF_UP_TO_DATE:Lcom/facebook/orca/server/DataFreshnessParam;

    invoke-direct {p0, v0}, Lcom/facebook/orca/threadview/ThreadViewActivity;->a(Lcom/facebook/orca/server/DataFreshnessParam;)V

    goto :goto_0

    .line 575
    :cond_2
    iget-object v1, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->I:Lcom/facebook/orca/common/ui/widgets/text/ThreadNameView;

    invoke-virtual {v1, v0}, Lcom/facebook/orca/common/ui/widgets/text/ThreadNameView;->setThreadSummary(Lcom/facebook/orca/threads/ThreadSummary;)V

    .line 579
    sget-object v0, Lcom/facebook/orca/server/DataFreshnessParam;->STALE_DATA_OKAY:Lcom/facebook/orca/server/DataFreshnessParam;

    invoke-direct {p0, v0}, Lcom/facebook/orca/threadview/ThreadViewActivity;->a(Lcom/facebook/orca/server/DataFreshnessParam;)V

    goto :goto_1
.end method

.method f()V
    .locals 0

    .prologue
    .line 804
    invoke-virtual {p0}, Lcom/facebook/orca/threadview/ThreadViewActivity;->onBackPressed()V

    .line 805
    return-void
.end method

.method g()Lcom/facebook/orca/compose/ComposeMode;
    .locals 1

    .prologue
    .line 823
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->ae:Lcom/facebook/orca/compose/ComposeMode;

    return-object v0
.end method

.method h()V
    .locals 4

    .prologue
    .line 828
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->L:Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;

    invoke-virtual {v0}, Lcom/facebook/orca/threadview/ThreadViewMessageFragmentTab;->o()Landroid/view/View;

    move-result-object v0

    new-instance v1, Lcom/facebook/orca/threadview/ThreadViewActivity$7;

    invoke-direct {v1, p0}, Lcom/facebook/orca/threadview/ThreadViewActivity$7;-><init>(Lcom/facebook/orca/threadview/ThreadViewActivity;)V

    const-wide/16 v2, 0x12c

    invoke-virtual {v0, v1, v2, v3}, Landroid/view/View;->postDelayed(Ljava/lang/Runnable;J)Z

    .line 836
    return-void
.end method

.method public onBackPressed()V
    .locals 1

    .prologue
    .line 809
    iget-boolean v0, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->X:Z

    if-nez v0, :cond_0

    .line 810
    invoke-direct {p0}, Lcom/facebook/orca/threadview/ThreadViewActivity;->r()V

    .line 814
    :goto_0
    return-void

    .line 812
    :cond_0
    invoke-virtual {p0}, Lcom/facebook/orca/threadview/ThreadViewActivity;->finish()V

    goto :goto_0
.end method

.method public onCreateOptionsMenu(Landroid/view/Menu;)Z
    .locals 2
    .parameter

    .prologue
    .line 353
    invoke-super {p0, p1}, Lcom/facebook/orca/activity/OrcaFragmentActivity;->onCreateOptionsMenu(Landroid/view/Menu;)Z

    .line 354
    invoke-virtual {p0}, Lcom/facebook/orca/threadview/ThreadViewActivity;->getMenuInflater()Landroid/view/MenuInflater;

    move-result-object v0

    .line 355
    const v1, 0x7f0c0001

    invoke-virtual {v0, v1, p1}, Landroid/view/MenuInflater;->inflate(ILandroid/view/Menu;)V

    .line 356
    const/4 v0, 0x1

    return v0
.end method

.method protected onDestroy()V
    .locals 1

    .prologue
    .line 300
    invoke-super {p0}, Lcom/facebook/orca/activity/OrcaFragmentActivity;->onDestroy()V

    .line 301
    invoke-direct {p0}, Lcom/facebook/orca/threadview/ThreadViewActivity;->m()V

    .line 302
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->s:Lcom/facebook/orca/common/ui/widgets/AnchorableToast;

    invoke-virtual {v0}, Lcom/facebook/orca/common/ui/widgets/AnchorableToast;->a()V

    .line 303
    return-void
.end method

.method public onKeyDown(ILandroid/view/KeyEvent;)Z
    .locals 2
    .parameter
    .parameter

    .prologue
    .line 376
    invoke-virtual {p2}, Landroid/view/KeyEvent;->getAction()I

    move-result v0

    if-nez v0, :cond_0

    .line 377
    invoke-virtual {p2}, Landroid/view/KeyEvent;->getKeyCode()I

    move-result v0

    const/16 v1, 0x1f

    if-ne v0, v1, :cond_0

    .line 378
    invoke-virtual {p0}, Lcom/facebook/orca/threadview/ThreadViewActivity;->c()V

    .line 379
    const/4 v0, 0x1

    .line 382
    :goto_0
    return v0

    :cond_0
    invoke-super {p0, p1, p2}, Lcom/facebook/orca/activity/OrcaFragmentActivity;->onKeyDown(ILandroid/view/KeyEvent;)Z

    move-result v0

    goto :goto_0
.end method

.method public onOptionsItemSelected(Landroid/view/MenuItem;)Z
    .locals 2
    .parameter

    .prologue
    const/4 v1, 0x1

    .line 362
    invoke-interface {p1}, Landroid/view/MenuItem;->getItemId()I

    move-result v0

    packed-switch v0, :pswitch_data_0

    .line 369
    invoke-super {p0, p1}, Lcom/facebook/orca/activity/OrcaFragmentActivity;->onOptionsItemSelected(Landroid/view/MenuItem;)Z

    move-result v0

    :goto_0
    return v0

    .line 364
    :pswitch_0
    iput-boolean v1, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->Z:Z

    .line 365
    invoke-virtual {p0}, Lcom/facebook/orca/threadview/ThreadViewActivity;->e()V

    move v0, v1

    .line 366
    goto :goto_0

    .line 362
    :pswitch_data_0
    .packed-switch 0x7f080127
        :pswitch_0
    .end packed-switch
.end method

.method protected onPause()V
    .locals 1

    .prologue
    .line 293
    invoke-super {p0}, Lcom/facebook/orca/activity/OrcaFragmentActivity;->onPause()V

    .line 294
    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->T:Z

    .line 295
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->s:Lcom/facebook/orca/common/ui/widgets/AnchorableToast;

    invoke-virtual {v0}, Lcom/facebook/orca/common/ui/widgets/AnchorableToast;->a()V

    .line 296
    return-void
.end method

.method protected onResume()V
    .locals 4

    .prologue
    const/4 v3, 0x1

    .line 274
    invoke-super {p0}, Lcom/facebook/orca/activity/OrcaFragmentActivity;->onResume()V

    .line 275
    iput-boolean v3, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->T:Z

    .line 276
    invoke-virtual {p0}, Lcom/facebook/orca/threadview/ThreadViewActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    .line 277
    const-string v1, "from_notification"

    const/4 v2, 0x0

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->getBooleanExtra(Ljava/lang/String;Z)Z

    move-result v1

    .line 278
    if-eqz v1, :cond_0

    .line 282
    const-string v1, "from_notification"

    invoke-virtual {v0, v1}, Landroid/content/Intent;->removeExtra(Ljava/lang/String;)V

    .line 283
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->n:Lcom/facebook/orca/notify/OrcaNotificationManager;

    invoke-virtual {v0}, Lcom/facebook/orca/notify/OrcaNotificationManager;->a()V

    .line 284
    iput-boolean v3, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->Z:Z

    .line 287
    :cond_0
    invoke-virtual {p0}, Lcom/facebook/orca/threadview/ThreadViewActivity;->e()V

    .line 288
    invoke-direct {p0}, Lcom/facebook/orca/threadview/ThreadViewActivity;->t()V

    .line 289
    return-void
.end method

.method protected onStart()V
    .locals 0

    .prologue
    .line 262
    invoke-super {p0}, Lcom/facebook/orca/activity/OrcaFragmentActivity;->onStart()V

    .line 263
    invoke-direct {p0}, Lcom/facebook/orca/threadview/ThreadViewActivity;->l()V

    .line 264
    return-void
.end method

.method protected onStop()V
    .locals 0

    .prologue
    .line 268
    invoke-super {p0}, Lcom/facebook/orca/activity/OrcaFragmentActivity;->onStop()V

    .line 269
    invoke-direct {p0}, Lcom/facebook/orca/threadview/ThreadViewActivity;->m()V

    .line 270
    return-void
.end method

.method public onUserInteraction()V
    .locals 1

    .prologue
    .line 387
    invoke-super {p0}, Lcom/facebook/orca/activity/OrcaFragmentActivity;->onUserInteraction()V

    .line 388
    iget-object v0, p0, Lcom/facebook/orca/threadview/ThreadViewActivity;->n:Lcom/facebook/orca/notify/OrcaNotificationManager;

    invoke-virtual {v0}, Lcom/facebook/orca/notify/OrcaNotificationManager;->a()V

    .line 389
    invoke-direct {p0}, Lcom/facebook/orca/threadview/ThreadViewActivity;->t()V

    .line 390
    return-void
.end method

.method public onWindowFocusChanged(Z)V
    .locals 0
    .parameter

    .prologue
    .line 307
    invoke-super {p0, p1}, Lcom/facebook/orca/activity/OrcaFragmentActivity;->onWindowFocusChanged(Z)V

    .line 308
    invoke-direct {p0}, Lcom/facebook/orca/threadview/ThreadViewActivity;->t()V

    .line 309
    return-void
.end method
